<?php

	require '../utils/conn.php';
	
	$message = $_REQUEST['message'];
	$type = $_REQUEST['type'];
	$timestamp = time();
	
	$query = "UPDATE t_message SET message='$message', timestamp='$timestamp' WHERE type=$type";
	mysql_query($query);
?>